Yuri Chornoivan [Fri, 12 Jun 2020 06:40:07 +0000 (06:40 +0000)]
Update Ukrainian translation
Matthias Clasen [Thu, 11 Jun 2020 23:44:48 +0000 (23:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2077
Matthias Clasen [Thu, 11 Jun 2020 22:29:58 +0000 (18:29 -0400)]
dropdown: Make the popup as wide as the button
Having narrow popups on a wide button looks awkward.
Do the same as the combo box, and ensure the popup
is at least as wide as the button.
Matthias Clasen [Sun, 7 Jun 2020 13:08:10 +0000 (09:08 -0400)]
iconbrowser: Drop app menu leftovers
We don't use menus.ui anymore, so don't put it in a resource.
Matthias Clasen [Thu, 11 Jun 2020 22:09:12 +0000 (18:09 -0400)]
Adwaita: bring dropdown arrows back
These got lost when the css name changed from combobox
to dropdown.
Matthias Clasen [Thu, 11 Jun 2020 21:25:57 +0000 (17:25 -0400)]
docs: Cosmetics
Remove a few instances of GTK+ from the docs, and
remove references to ancient versions.
Matthias Clasen [Thu, 11 Jun 2020 20:58:52 +0000 (20:58 +0000)]
Merge branch 'recent-model' into 'master'
Add a list model for recent files
See merge request GNOME/gtk!2073
Matthias Clasen [Wed, 10 Jun 2020 23:55:58 +0000 (19:55 -0400)]
testcolumnview: Add recent file support
Use testcolumnview --recent to see recent files.
Matthias Clasen [Wed, 10 Jun 2020 21:03:13 +0000 (17:03 -0400)]
Add GtkBookmarkList
This is a listmodel similar to GtkDirectoryList,
for tracking recent files.
Matthias Clasen [Thu, 11 Jun 2020 13:08:47 +0000 (13:08 +0000)]
Merge branch 'property-selection-getters' into 'master'
propertyselection: Add getters
See merge request GNOME/gtk!2075
Matthias Clasen [Thu, 11 Jun 2020 11:15:27 +0000 (07:15 -0400)]
propertyselection: Add getters
These were missing.
Matthias Clasen [Wed, 10 Jun 2020 14:47:36 +0000 (14:47 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernative_get_filter' into 'master'
filechoosernative: Make get_filter work for (non-portal) native chooser (master, issue #1820)
Closes #1820
See merge request GNOME/gtk!2069
Emmanuele Bassi [Wed, 10 Jun 2020 14:35:10 +0000 (14:35 +0000)]
Merge branch 'wip/carlosg/zoom-no-touchpad-warnings' into 'master'
gtkgesturezoom: Do not check touchpad phase on generic events
Closes #2825
See merge request GNOME/gtk!2071
Matthias Clasen [Wed, 10 Jun 2020 14:35:01 +0000 (14:35 +0000)]
Merge branch 'scroll-compression' into 'master'
gdk: Compress scroll events
Closes #2800
See merge request GNOME/gtk!2066
Matthias Clasen [Wed, 10 Jun 2020 13:06:13 +0000 (13:06 +0000)]
Merge branch 'device-cleanup' into 'master'
Device cleanup
See merge request GNOME/gtk!2068
sicklylife [Wed, 10 Jun 2020 12:34:42 +0000 (12:34 +0000)]
Update Japanese translation
Carlos Garnacho [Wed, 10 Jun 2020 12:27:14 +0000 (14:27 +0200)]
gtkgesturezoom: Do not check touchpad phase on generic events
This gesture handles both individual touch events and touchpad gesture
events, and was checking the touchpad phase in generic code paths. This
is dubious since event methods error out on the wrong GdkEventTypes.
Check the touchpad gesture phase within the branch handling touchpad
events, and make it clear which is the gesture phase of all that we are
ignoring.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2825
sicklylife [Wed, 10 Jun 2020 12:18:55 +0000 (12:18 +0000)]
Update Japanese translation
Matthias Clasen [Tue, 9 Jun 2020 19:26:04 +0000 (15:26 -0400)]
gdk: Drop axis labels
This was only ever implemented on X11, and the labels
here were atom names, so unlikely to be useful for
anything interesting.
Alexander Larsson [Wed, 10 Jun 2020 07:19:22 +0000 (07:19 +0000)]
Merge branch 'win32-use-g-stat' into 'master'
gtkiconcache: Use g_stat instead of fstat
See merge request GNOME/gtk!2019
Michael Weghorn [Sat, 23 May 2020 11:38:54 +0000 (13:38 +0200)]
filechoosernative: Make get_filter work for (non-portal) native chooser
'gtk_file_chooser_get_filter' did not work for GtkFileChooserNative,
since the previous way did not properly handle the delegate dialog,
s.a. commit
a136cbae8f8848d49976512f7f0ec73137428ea0
("filechoosernative: forward current_filter to delegate dialog",
2018-11-29) for details, wich basiscally fixed the same thing for
the 'gtk_file_chooser_set_filter' case.
This fixes #1820 for the fallback dialog. A solution for the portal
one (which also requires changes to xdg-desktop-portal and
xdg-desktop-portal-gtk as well) will be suggested in a subsequent step.
Bug: #1820
Matthias Clasen [Tue, 9 Jun 2020 19:15:51 +0000 (15:15 -0400)]
gdk: Drop gdk_device_set_axis_use
If you need some axes changed, you can just flip
the values when you receive them.
Matthias Clasen [Tue, 9 Jun 2020 19:06:38 +0000 (15:06 -0400)]
gdk: Drop gdk_device_get/set_keys
This functionality was only ever half-implemented
on X11, and is not useful enough to keep around.
Matthias Clasen [Tue, 9 Jun 2020 19:05:55 +0000 (15:05 -0400)]
x11: Stop setting device keys
This is very vestigial functionality, and basically
unused.
Matthias Clasen [Tue, 9 Jun 2020 18:13:22 +0000 (14:13 -0400)]
Address review comments
We were casting scroll events to motion events
rather carelessly. Don't do that.
Matthias Clasen [Tue, 9 Jun 2020 17:59:26 +0000 (13:59 -0400)]
gdk: Add documentation
Add some useful information about event history.
Matthias Clasen [Tue, 9 Jun 2020 17:40:26 +0000 (13:40 -0400)]
gdk: Rename gdk_motion_event_get_history
Scroll events can have history too, so make a
getter that works for both. This drops the
gdk_scroll_event_get_history getter that was
added a few commits earlier, since we now
store scroll history in the same way as
motion history.
Update the docs, and all callers.
Matthias Clasen [Tue, 9 Jun 2020 17:38:48 +0000 (13:38 -0400)]
gdk: Shrink GdkTimeCoord
There is really no need to store 128 doubles as axes,
ever. We can do just fine with 10. At the same time,
add a GdkAxisFlags member, so we can interpret the
values without having to go chasing the right device
for this information.
Matthias Clasen [Tue, 9 Jun 2020 17:41:07 +0000 (13:41 -0400)]
gdk: Add scroll delta x/y as device axes
They really are axes, and having them present
in these enums lets use store delta values in
GdkTimeCoord for keeping history.
Matthias Clasen [Tue, 9 Jun 2020 00:29:38 +0000 (20:29 -0400)]
Keep scroll history
Similar to how we keep motion history for compressed
events, keep scroll history for compressed scroll
events.
Matthias Clasen [Mon, 8 Jun 2020 22:07:40 +0000 (18:07 -0400)]
gdk: Compress scroll events
Only return one accumulated scroll event per frame.
Compress them by adding up the deltas.
Still missing: a way to capture history, like
we do for motion events.
Fixes: #2800
Daniel Mustieles [Tue, 9 Jun 2020 15:19:50 +0000 (17:19 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 8 Jun 2020 23:56:30 +0000 (23:56 +0000)]
Merge branch 'drop-device-history' into 'master'
Drop device history
See merge request GNOME/gtk!2065
Matthias Clasen [Mon, 8 Jun 2020 22:22:52 +0000 (18:22 -0400)]
gdk: Drop gdk_device_get_history
This function is not implemented anywhere.
Matthias Clasen [Mon, 8 Jun 2020 22:21:12 +0000 (18:21 -0400)]
win32: Drop pointless vfuncs
These are not useful.
Matthias Clasen [Mon, 8 Jun 2020 22:20:20 +0000 (18:20 -0400)]
wayland: Drop a pointless vfunc
A vfunc that just returns FALSE is not useful.
Matthias Clasen [Mon, 8 Jun 2020 22:19:57 +0000 (18:19 -0400)]
broadway: Drop a pointless vfunc
A vfunc that just returns FALSE is not useful.
Jordi Mas [Mon, 8 Jun 2020 20:50:03 +0000 (22:50 +0200)]
Update Catalan translation
Benjamin Otte [Mon, 8 Jun 2020 18:43:31 +0000 (18:43 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
Wip/otte/for master
See merge request GNOME/gtk!2064
Benjamin Otte [Mon, 8 Jun 2020 16:47:44 +0000 (18:47 +0200)]
selectionmodel: Add unselect_rest argument to select_callback
This is not just about consistency with other functions.
It is about avoiding reentrancy problems.
GtkListBase first doing an unselect_all() will then force the
SelectionModel to consider a state where all items are unselected
(and potentially deciding to autoselect one) and then cause a
"selection-changed" emission that unselects all items and potentially
updates all the list item widgets in the GtkListBase to the unselected
state.
After this, GtkListBase selects new items, but to the SelectionModel and
the list item widgets this looks like an enitrely new operation and
there is no way to associate it with the previous state, so the
SelectionModel cannot undo any previous actions it took when
unselecting.
And all listitem widgets will now think they were just selected and
start running animations about selecting.
Benjamin Otte [Mon, 8 Jun 2020 16:26:48 +0000 (18:26 +0200)]
selectionmodel: Rename "exclusive" to "unselect_rest"
The name is better at explaining what this boolean is meant to do.
Benjamin Otte [Mon, 8 Jun 2020 16:06:01 +0000 (18:06 +0200)]
listitemmanager: Update selections properly
Replace a previous fix with a more correct one: Update the
selected state from the model instead of reusing the old state, the
model might have updated the selected state.
Daniel Mustieles [Mon, 8 Jun 2020 15:21:58 +0000 (17:21 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 8 Jun 2020 14:11:28 +0000 (16:11 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 8 Jun 2020 11:15:28 +0000 (11:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
dropdown: Use our own CSS name
See merge request GNOME/gtk!2061
Emmanuele Bassi [Mon, 8 Jun 2020 09:35:23 +0000 (09:35 +0000)]
Merge branch 'tintou/places-sidebar-cloudproviders' into 'master'
placessidebar: Fix build with libcloudproviders
See merge request GNOME/gtk!2062
Corentin Noël [Mon, 8 Jun 2020 08:40:46 +0000 (10:40 +0200)]
placessidebar: Fix build with libcloudproviders
Make it build with cloudproviders=true as the GtkPopover API for menus is now in GtkPopoverMenu.
Fix some leaks while looking at the code.
Matthias Clasen [Sun, 7 Jun 2020 14:54:37 +0000 (14:54 +0000)]
Merge branch 'fix-cell-editing' into 'master'
Fix cell editing
Closes #2831
See merge request GNOME/gtk!2060
Matthias Clasen [Sun, 7 Jun 2020 13:01:20 +0000 (09:01 -0400)]
dropdown: Use our own CSS name
Use the name dropdown for the css node, and document it.
Matthias Clasen [Sun, 7 Jun 2020 12:48:14 +0000 (08:48 -0400)]
Drop gtknativeprivate.h
No need to ship empty headers.
Matthias Clasen [Sun, 7 Jun 2020 12:51:34 +0000 (12:51 +0000)]
Merge branch 'gtk-demo-tweaks' into 'master'
Gtk demo tweaks
See merge request GNOME/gtk!2059
Matthias Clasen [Sun, 7 Jun 2020 12:43:36 +0000 (08:43 -0400)]
Fix cell editing
When translating coordinates from an event, we need to
take the surface transform into account. This makes
double-clicking on editable cells in treeviews work
again.
Fixes: #2831
Yuri Chornoivan [Sun, 7 Jun 2020 08:51:44 +0000 (08:51 +0000)]
Update Ukrainian translation
Piotr Drąg [Sun, 7 Jun 2020 07:27:34 +0000 (09:27 +0200)]
Update POTFILES.in
Matthias Clasen [Sun, 7 Jun 2020 02:07:38 +0000 (22:07 -0400)]
gtk-demo: Expand the sidebar by default
Seems better to show what we have. Plus, clicking
those arrows is a little fiddly.
Matthias Clasen [Sun, 7 Jun 2020 02:06:58 +0000 (22:06 -0400)]
gtk-demo: Improve display of image sources
Make the images expand to fill the space.
Matthias Clasen [Sun, 7 Jun 2020 02:05:52 +0000 (22:05 -0400)]
gtk-demo: Cosmetics
Tweak the formatting of the descriptions of
various demos.
Matthias Clasen [Sun, 7 Jun 2020 01:42:07 +0000 (21:42 -0400)]
gtk-demo: Cosmetics
Make the titles of some demos match between sidebar
and window.
Emmanuele Bassi [Sun, 7 Jun 2020 01:42:21 +0000 (01:42 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Annotate the GtkSelectionModel callbacks
See merge request GNOME/gtk!2057
Matthias Clasen [Sun, 7 Jun 2020 01:38:31 +0000 (21:38 -0400)]
gtk-demo: Add overline to the markup demo
This is a new-ish Pango feature.
Matthias Clasen [Sun, 7 Jun 2020 01:32:55 +0000 (21:32 -0400)]
Drop pango version checks
We are requiring pango 1.45.0 now, so no need to
Keep these ifdefs in the code any longer.
Matthias Clasen [Sun, 7 Jun 2020 00:09:42 +0000 (20:09 -0400)]
gtk-demo: Fix a leak
The themes demo was leaking its builder, and
therefore couldn't be closed.
Matthias Clasen [Sun, 7 Jun 2020 00:08:50 +0000 (20:08 -0400)]
gtk-demo: Cosmetic changes to the dropdown demo
Match the window title and the sidebar.
Matthias Clasen [Sat, 6 Jun 2020 23:43:21 +0000 (19:43 -0400)]
gtk-demo: Cosmetic improvements to clocks demo
Reformat the code comments, and add a 10th clock.
Emmanuele Bassi [Sat, 6 Jun 2020 23:39:33 +0000 (00:39 +0100)]
Annotate the GtkSelectionModel callbacks
We need a scope for the select and unselect callback arguments.
Jordi Mas [Sat, 6 Jun 2020 21:13:17 +0000 (23:13 +0200)]
Update Catalan translation
Matthias Clasen [Sat, 6 Jun 2020 17:56:00 +0000 (13:56 -0400)]
3.98.5
Matthias Clasen [Sat, 6 Jun 2020 19:31:29 +0000 (15:31 -0400)]
Disable a failing test
For some reason, empty-linear-gradient is failing here,
with the broadway and opengl renderers, and I don't
know why. Disable it for now.
Matthias Clasen [Sat, 6 Jun 2020 18:18:18 +0000 (14:18 -0400)]
Skip broken a11y tests
Matthias Clasen [Sat, 6 Jun 2020 17:29:55 +0000 (13:29 -0400)]
docs: Regroup the tree support parts
Give the chapter a title, and put some things in sections.
Matthias Clasen [Sat, 6 Jun 2020 17:19:07 +0000 (13:19 -0400)]
docs: Put selection models into a section
This makes the documentation structure a bit clearer.
Matthias Clasen [Sat, 6 Jun 2020 16:59:58 +0000 (12:59 -0400)]
docs: Fix up the GtkNativeDialog section
Without GtkNativeDialog in the section list,
links are not generated from the object hierarchy.
Matthias Clasen [Sat, 6 Jun 2020 17:54:42 +0000 (17:54 +0000)]
Merge branch 'misc-multiselection' into 'master'
Misc multiselection
See merge request GNOME/gtk!2055
Matthias Clasen [Sat, 6 Jun 2020 17:47:05 +0000 (17:47 +0000)]
Merge branch 'list-arrows' into 'master'
listbase: Make up/down arrows work
See merge request GNOME/gtk!2056
Matthias Clasen [Sat, 6 Jun 2020 17:35:05 +0000 (17:35 +0000)]
Merge branch 'property-selection' into 'master'
Property selection
Closes #2826
See merge request GNOME/gtk!2054
Matthias Clasen [Sat, 6 Jun 2020 16:33:12 +0000 (12:33 -0400)]
listbase: Make up/down arrows work
We were missing a binding for up/down without modifiers.
Matthias Clasen [Sat, 6 Jun 2020 15:53:33 +0000 (11:53 -0400)]
singleselection: Clarify docs
Mention persistence and sorting.
Matthias Clasen [Sat, 6 Jun 2020 13:49:25 +0000 (09:49 -0400)]
gtk-demo: Use a property selection in the colors demo
This makes the property persist across sort changes.
Matthias Clasen [Sat, 6 Jun 2020 13:40:04 +0000 (09:40 -0400)]
Add GtkPropertySelection
This is a selection model that stores the selection
state in a boolean property of the items, and thus
persists across reordering and similar changes.
Fixes: #2826
Matthias Clasen [Sat, 6 Jun 2020 15:23:40 +0000 (15:23 +0000)]
Merge branch 'listitemmanager-selection' into 'master'
listitemmanager: Handle selection-changes properly
Closes #2827
See merge request GNOME/gtk!2053
Matthias Clasen [Sat, 6 Jun 2020 15:21:29 +0000 (11:21 -0400)]
multiselection: Rewrite the select_callback implementation
Use a for loop to make this more obvious, and add some
assertions that the callback is behaving properly.
Matthias Clasen [Sat, 6 Jun 2020 15:20:47 +0000 (11:20 -0400)]
Add tests for select_callback
Matthias Clasen [Sat, 6 Jun 2020 15:21:05 +0000 (11:21 -0400)]
Add a forgotten export
gtk_selection_model_unselect_callback needs to be exported.
Matthias Clasen [Sat, 6 Jun 2020 14:36:09 +0000 (10:36 -0400)]
selectionmodel: Document the callback apis
Matthias Clasen [Sat, 6 Jun 2020 14:23:12 +0000 (10:23 -0400)]
Add a test for multiselection persistence
Add a test that verifies that newly added items
are always unselected.
Matthias Clasen [Sat, 6 Jun 2020 14:22:37 +0000 (10:22 -0400)]
multiselection: Clarify docs
Make it clear that GtkMultiSelection is not persistent
across resorting.
Yuri Chornoivan [Sat, 6 Jun 2020 13:46:40 +0000 (13:46 +0000)]
Update Ukrainian translation
Yuri Chornoivan [Sat, 6 Jun 2020 13:44:29 +0000 (13:44 +0000)]
Update Ukrainian translation
Matthias Clasen [Sat, 6 Jun 2020 13:39:36 +0000 (09:39 -0400)]
Drop an unnecessary include
Matthias Clasen [Sat, 6 Jun 2020 12:34:46 +0000 (08:34 -0400)]
listitemmanager: Handle selection-changes properly
The selection model will only emit one of items-changed
or selection-changed, so when we handle an items-changed,
we must assume that selection state may have changed for
any of the newly added items.
This fixes lingering selection state in the visible range
if you change the sorting of the colors demo.
Fixes: #2827
Piotr Drąg [Sat, 6 Jun 2020 12:00:43 +0000 (14:00 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Sat, 6 Jun 2020 05:30:30 +0000 (05:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2052
Benjamin Otte [Sat, 6 Jun 2020 05:16:47 +0000 (05:16 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
multiselection: Remove unused code
See merge request GNOME/gtk!2051
Matthias Clasen [Sat, 6 Jun 2020 04:23:04 +0000 (00:23 -0400)]
listitemwidget: Don't look at rubberbanding
Move the selection changes to button release, to
avoid conflict with the drag gesture for rubberbanding.
This avoids peeking at the parent, and is generally
nicer.
Among other things, you can now shift-click to select
a range in the colors demo in gtk4-demo.
Matthias Clasen [Sat, 6 Jun 2020 04:15:50 +0000 (00:15 -0400)]
listbase: Fix an off-by-one error
We were accidentally cutting off the set one-too-early,
which showed up as single clicks not selecting an item
anymore.
Matthias Clasen [Sat, 6 Jun 2020 03:18:00 +0000 (23:18 -0400)]
listbase: Fix a problem with rubberbands
When I changed things to only collect the set
in the stop() function, I overlooked that this
has the side-effect of only handling items which
are backed by a widget at the time stop() is called.
If we make a big rubberband and autoscroll down too
far, we loose the items that go out the visible range
at the top. Fix that by maintaining the set as we go.
Matthias Clasen [Sat, 6 Jun 2020 03:15:20 +0000 (23:15 -0400)]
multiselection: Don't emit nonsensical signals
I forgot to add a check here. We only want to emit
a ::selection-changed if we actually changed it.
Benjamin Otte [Sat, 6 Jun 2020 03:02:37 +0000 (05:02 +0200)]
multiselection: Remove unused code
This is leftover code from an earlier SelectionModel API.
Matthias Clasen [Sat, 6 Jun 2020 01:35:56 +0000 (21:35 -0400)]
NEWS: Updates
Matthias Clasen [Sat, 6 Jun 2020 01:36:27 +0000 (21:36 -0400)]
gtk: Documentation fixups
Document missing symbols, and other cleanups.